<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/page/template/admin_main.xhtml">

	<ui:define name="title">
			Admin
	</ui:define>

	<ui:define name="content">
		<div class="adminContent">
			<div class="article-container">
				<h3>الطلبات</h3>
				
				<div class="article-separator"></div>

				<div class="clear-floating"/>
				
				<h:form id="f1">
					<p:messages />
					
					<p:commandButton id="cb1" value="اضافة طلب" action="#{embassyServicesHandlerBean.preAddService}" ajax="false" />
        			
        			<div style="margin-top:15px;" ></div>
        			
					<p:dataTable value="#{embassyServicesHandlerBean.embassyServicesList}" var="service" 
						scrollable="true" scrollHeight="150" 
						styleClass="data-table">
						<p:column headerText="اجراءات" >
							<p:commandLink value="تعديل" action="#{embassyServicesHandlerBean.preEditEmbassyService(service)}" ajax="false" />
							<p:spacer width="20px" />
							<p:commandLink value="حذف" action="#{embassyServicesHandlerBean.deleteEmbassyService(service)}" ajax="false" />
						</p:column>
						
						<p:column headerText="الطلب" width="70%" >
							<p:outputLabel value="#{service.title}" />
						</p:column>
					</p:dataTable>
					
				</h:form>
				
			</div>
			<div class="clear-floating"></div>
			
		</div>
	</ui:define>

</ui:composition>
</html>